package com.creativestar.elixurecrm.info;

public class ElixurecrmInfo {
	
	public static final String APPTOKEN = "c8jx4rntgun3zsr623dcfgy6ix";

	public static final String TICKET = "6_bi4i5udp2_bz5wzp_ehpr_3r79itbgpri3zdydgp99cp9mx32xni4hycyyfsupdumqs2dc4w276m";
	public static final String DBID_COMPANIES = "bi4ejb88k";
	public static final String DBID_OPPORTUNITIES="bi4ejb882";
	public static final String BASE_API_URL = "https://creativestar.quickbase.com/db/";
	public static final String USER_AUTH_STRING = "&username=ben.wu@cssinco.cn&password=lihui123";

	public static final String COMPANYNAME_FID = "6";
	public static final String ACCOUNTMANAGER_FID = "31";
	public static final String ELIXURESTATUS_FID = "49";
	public static final String ADDRESS_FID = "40";
	public static final String PHONE_FID = "12";
	public static final String EMAILLADDRESS_FID = "48";
	public static final String WEB_FID = "14";
	public static final String NOTES_FID = "47";

	public static String getAPIRequestURL(String dbid, String api) {
		return BASE_API_URL + dbid + "?act=" + api + USER_AUTH_STRING;
	}

	public static String getRecordInfoUrl(String dbid, String rid) {
		return BASE_API_URL + dbid + "?act=" + "API_GetRecordInfo&rid=" + rid
				+ USER_AUTH_STRING+"&apptoken="+APPTOKEN;
	}

}
